<?php $this->pageTitle = Yii::app()->user->name; ?>
<div class="c_body">
	<div class="u_tabs">
		<div class="u_tabs_head ajaxLinks">
			<a class="u_tab" id="u_search_tab1" href="<?php echo Yii::app()->createUrl("profile/settingsPersonal",array('id'=>$_GET['id'])); ?>">Личные данные</a>
			<a class="u_tab" id="u_search_tab2" href="<?php echo Yii::app()->createUrl("profile/settingsGeneral",array('id'=>$_GET['id'])); ?>">Общее</a>
			<a class="u_tab" id="u_search_tab3" href="<?php echo Yii::app()->createUrl("profile/settingsPrivacy",array('id'=>$_GET['id'])); ?>">Приватность</a>
			<div class="u_tab curr">Оповещения</div>
			<a class="u_tab" id="u_search_tab5" href="<?php echo Yii::app()->createUrl("profile/BlackList",array('id'=>$_GET['id'])); ?>">Черный список</a>
		</div>
	</div>
	<div class="clearfix">	
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'groups-form',
			'enableAjaxValidation'=>false,
			'htmlOptions'=>array('rel' =>Yii::app()->createUrl('profile/index', array('id'=>Yii::app()->request->getParam('id')))),
		)); ?>

		<?php echo $form->errorSummary($model); ?>
		<div class="u_cat also">
			<div class="u_cat_head_strip"></div>
			<div class="u_cat_head"><span>Оповещения по электронной почте</span></div>
			<table class="flds_form">
					<tr>
						<td class="flds_form_l flds_form_privacy">
							<?php echo $form->labelEx($model,'friend_notification'); ?>
						</td>
						<td class="flds_form_r">
							<div class="select_block long">		
								<?php echo $form->dropDownList($model, 'friend_notification', array('1'=>'Да', '0'=>'Нет') );?>
								<?php echo $form->error($model,'friend_notification'); ?>
							</div>
						</td>
					</tr>
					<tr>
						<td class="flds_form_l flds_form_privacy">
							<?php echo $form->labelEx($model,'massange_notification'); ?>
						</td>
						<td class="flds_form_r">
							<div class="select_block long">		
								<?php echo $form->dropDownList($model, 'massange_notification', array('1'=>'Да', '0'=>'Нет'));?>
								<?php echo $form->error($model,'massange_notification'); ?>
							</div>
						</td>
					</tr>
					<input type="hidden" name="Users[comment_notification]" value="0" />
					<?php /*
					<tr>
						<td class="flds_form_l flds_form_privacy">
							<?php echo $form->labelEx($model,'comment_notification'); ?>
						</td>
						<td class="flds_form_r">
							<div class="select_block long">		
								<?php echo $form->dropDownList($model, 'comment_notification', array('1'=>'Да', '0'=>'Нет'));?>
								<?php echo $form->error($model,'comment_notification'); ?>
							</div>
						</td>
					</tr>
					<?php */ ?>
					<tr>
						<td class="flds_form_l flds_form_privacy">
							<?php echo $form->labelEx($model,'wall_notification'); ?>
						</td>
						<td class="flds_form_r">
							<div class="select_block long">		
								<?php echo $form->dropDownList($model, 'wall_notification', array('1'=>'Да', '0'=>'Нет'));?>
								<?php echo $form->error($model,'wall_notification'); ?>
							</div>
						</td>
					</tr>

				</table>
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Добавить сообщество' : 'Сохранить изменения', array('class'=>'green_btn tac')); ?>
		<?php $this->endWidget(); ?>
	</div>
</div>